package com.zhentao.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "jwt")
public class JwtConfig {
    /**
     * 密钥
     */
    private String secret = "zhentao-jwt-secret-key-must-be-longer-than-32-bytes";

    /**
     * token有效期（单位：秒）
     */
    private Long expiration = 86400L; // 24小时

    /**
     * token前缀
     */
    private String tokenPrefix = "Bearer ";

    /**
     * header key
     */
    private String header = "Authorization";
} 